#include "mainwindow.h"

#include <QApplication>
#include <QDebug>
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    for (int i = 0; i < argc; i++)
    {
       qDebug()<< argv[i];
    }
    if(argc != 3)
        return -1;
    MainWindow w;
    w.setUrl(argv[1]);

    w.setFileName(argv[2]);

    w.show();

    return a.exec();
}
